package com.domain.oa.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.domain.oa.entity.User;
import com.domain.oa.utils.ResultVo;
import org.springframework.stereotype.Service;

@Service
public interface UserService extends IService<User> {
    ResultVo<User> getUserByPage(Integer pageNum, Integer pageSize, String userName);

    ResultVo register(String phone, String password);

    ResultVo checkLogin(String phone, String username, String password);

    ResultVo getUserInfoByUserId(Integer userId);

    ResultVo addUser(User user);

    ResultVo editUser(User user);

    ResultVo pretendDelete(Integer userId);
}
